package spring.bean;

import java.io.PrintStream;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 
 * @author：涂有
 * @date 2017年3月4日 下午1:40:25
 */
public class AloneClass {

	private PrintStream print;

	public PrintStream getPrint() {
		return print;
	}

	public void setPrint(PrintStream print) {
		this.print = print;
	}
	
	public static void main(String[] args) {
		
		ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
		AloneClass aloneClass = context.getBean(AloneClass.class);
		aloneClass.getPrint().println("asfdasdfasdf");
	}
}
